#ifndef __CMYTANK_BULLET_H
#define __CMYTANK_BULLET_H

#include "CMyGameBase.h"

using namespace cocos2d;

class GameLayer;

class CMyTankBullet : public CMyGameBase
{
public:
	CMyTankBullet(GameLayer *pGame, int owner, int dir);
	virtual ~CMyTankBullet(void);
	virtual bool init(void);
	virtual void updateObject(void);
	inline void setOwner(int owner) { m_nOwner = owner; }
	inline int getOwner(void) { return m_nOwner; }
	void setPower(int power) { m_nPower = power; }
	int getPower(void) { return m_nPower; }
	bool isOutOfScreen(void);
	void setDefAnimation(void);
	bool isDead(void) { return m_bDead; }
	void setExplodeAni(void);

protected :
	int m_nOwner; // player or enemy
	int m_nPower;
	bool m_bDead;
};

#endif // __CMYTANK_BULLET_H